[.config_load file="../../config/emmm.conf".]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[.$emmm_adminfont.admintitle.]</title>
<link href="templates/images/emmm_login.css" rel="stylesheet" type="text/css"> 
[.#jq172#.]
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(m,n){
 var tli=document.getElementById("menu"+m).getElementsByTagName("li");
 var mli=document.getElementById("main"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
//-->
</script>

</head>

<body>
<div style="height:50px;"></div>
<div style="clear:both"></div>
<div id="tabs0">
 <ul class="menu0" id="menu0">
  <li onclick="setTab(0,0)" class="hover">会员列表</li>
  <li onclick="setTab(0,1)">添加新会员</li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>
		<div class="emmm_newslist">
		<form id="form2" name="form2" method="post" action="?emmm_cms=Batch&type=[.$a[0].]&couponclass=[.$a[1].]">
		        <table width="100%" border="0" cellpadding="10" class="emmm_newslist">
                  <tr>
				  	<td width="5%" bgcolor="#EBEBEB"><div align="center">ID</div></td>
                    <td width="15%" bgcolor="#EBEBEB">会员账号</td>
					<td width="10%" bgcolor="#EBEBEB">会员姓名</td>
					<td width="15%" bgcolor="#EBEBEB">现金/积分</td>
					<td width="10%" bgcolor="#EBEBEB">IP</td>
					<td width="10%" bgcolor="#EBEBEB">状态</td>
					<td width="10%" bgcolor="#EBEBEB">推荐人</td>
                    <td width="15%" bgcolor="#EBEBEB">注册时间</td>
                    <td width="10%" bgcolor="#EBEBEB">操作</td>
                  </tr>
				  [.section loop=$Userlist name=op.]
                  <tr>
				  	<td>
						<div align="center">
							[.if $a[0] == 'coupon'.]
								<input type="checkbox" name="op_b[]" value="[.$Userlist[op].email.]" />
							[./if.]
							<font style="background:#009933; color:#FFFFFF; padding:2px; text-align:center;">[.$Userlist[op].id.]</font>
						</div>
					</td>
                    <td>[.$Userlist[op].email.]</td>
					<td>[.$Userlist[op].name.]</td>
					<td>[.$Userlist[op].money.]&nbsp;/&nbsp;[.$Userlist[op].integral.]</td>
                    <td>[.$Userlist[op].ip.]</td>
					<td>[.if $Userlist[op].status == 1.]开启[.else.]锁定[./if.]</td>
					<td>[.$Userlist[op].source.]</td>
					<td>[.$Userlist[op].time.]</td>
                    <td><a href="emmm_userview.php?id=[.$Userlist[op].id.]">编辑</a>&nbsp;&nbsp;-&nbsp;&nbsp;<a href="?emmm_cms=del&id=[.$Userlist[op].id.]" onclick="javascript:return confirm('确认删除吗?')">删除</a></td>
                  </tr>
				  [.sectionelse.]
				  <tr>
                    <td colspan="9">[.$emmm_access.]</td>
                  </tr>
				  [./section.]
                  <tr>
                    <td colspan="9">[.$emmmpage.]</td>
                  </tr>
				  [.if $a[0] == 'coupon'.]
				  <tr>
                    <td colspan="9"><input type="submit" name="Submit" value="批量发优惠券" class="emmm_listan" /></td>
                  </tr>
				  [./if.]
                </table>
			</form>
		</div>
	  </li>
  </ul>
  
  <ul>
	  <li>
		<form id="form1" name="form1" method="POST" action="?emmm_cms=add" class="registerform">
		<table width="98%" border="0" cellpadding="5" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse; margin-top:20px;" align="center">
		<tr>
		  	<td><div align="right">会员级别</div></td>
			<td>
			
				<select name="COL_Userclass" >
				  [.section loop=$Userleve name=op.]
					<option value="[.$Userleve[op].id.]">[.$Userleve[op].name.]</option>
				  [./section.]
				</select>
			
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">状态</div></td>
			<td><input name="COL_Userstatus" type="radio" value="1" checked="checked" />开启&nbsp;&nbsp;
			<input name="COL_Userstatus" type="radio" value="2" />锁定
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">会员账号</div></td>
			<td><input name="COL_Useremail" type="text" class="win" [.$emmm_bgcolor.] [.if $emmm_usercontrol.COL_Regtyle == 'email'.]datatype="e"[.else.]datatype="m"[./if.] nullmsg="账号是必填项!"/><font color=red> (*)</font>
			
			[.if $emmm_usercontrol.COL_Regtyle == 'email'.]EAMIL格式，如：77701950@qq.com[./if.]
			[.if $emmm_usercontrol.COL_Regtyle == 'tel'.]手机号格式，如：13199509559[./if.]
			
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">登录密码</div></td>
			<td><input name="COL_Userpass" type="text" class="win" [.$emmm_bgcolor.] atatype="*6-16" nullmsg="请设置密码！" errormsg="密码范围在6~16位之间！" /><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">确认密码</div></td>
			<td><input name="COL_Userpassto" type="text" class="win" [.$emmm_bgcolor.] datatype="*" recheck="COL_Userpass" nullmsg="请再输入一次密码！" errormsg="您两次输入的账号密码不一致！" /><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">账户现金</div></td>
			<td>添加好会员后,在后台充值中操作</td>
		  </tr>
		  <tr>
		  	<td><div align="right">账户积分</div></td>
			<td>添加好会员后,在后台充值中操作</td>
		  </tr>
		  <tr>
		  	<td><div align="right">会员姓名</div></td>
			<td><input name="COL_Username" type="text" class="win" [.$emmm_bgcolor.]  datatype="*" nullmsg="姓名是必填项!" /><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">手机号码</div></td>
			<td><input name="COL_Usertel" type="text" class="win" [.$emmm_bgcolor.]  datatype="*" nullmsg="电话是必填项!" /><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">QQ</div></td>
			<td><input name="COL_Userqq" type="text" class="win" [.$emmm_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">阿里旺旺</div></td>
			<td><input name="COL_Useraliww" type="text" class="win" [.$emmm_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">skype</div></td>
			<td><input name="COL_Userskype" type="text" class="win" [.$emmm_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">收货地址</div></td>
			<td><input name="COL_Useradd" type="text" class="win" [.$emmm_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">介绍人</div></td>
			<td><input name="COL_Usersource" type="text" class="win" [.$emmm_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">头像地址</div></td>
			<td><input name="COL_Userhead" type="text" class="win" [.$emmm_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">IP</div></td>
			<td><input name="COL_Userip" type="text" class="win" [.$emmm_bgcolor.] /></td>
		  </tr>
		  <tr>
		  	<td><div align="right">安全问题</div></td>
			<td>
			
				<select name="COL_Userproblem" >
				  [.section loop=$Userproblem name=op.]
					<option value="[.$Userproblem[op].name.]">[.$Userproblem[op].name.]</option>
				  [./section.]
				</select>
				
			<font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">答案</div></td>
			<td><input name="COL_Useranswer" type="text" class="win" [.$emmm_bgcolor.]  datatype="*" nullmsg="答案是必填项!"  /><font color=red> (*)</font></td>
		  </tr>
		  <tr>
		  	<td><div align="right">人生宣言</div></td>
			<td><textarea name="COL_Usertext" class="win" [.$emmm_bgcolor.] class="wtextarea" style="width:350px; height:100px; border:1px #D7EBFF solid;" ></textarea></td>
		  </tr>
		  
		   <tr>
		   	<td><input type="hidden" name="COL_Usersource" value="后台添加" /></td>
			<td><input type="submit" name="submit" value="提 交" class="emmm-anniu"/></td>
		  </tr>
		</table>
		</form>
	  </li>
  </ul>
 </div>
</div>
[.include file="emmm_foot.html".]
</body>
</html>
